<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<script type="text/javascript" src="${initParam.context_root }/script/script.js"></script>
<div class="container">
	<div class="starter-template" style="padding-right: 40px; padding-top: 40px; padding-bottom: 80px">
		<div class="alert alert-warning" style="width: 800px; margin: auto" >이곳은 답글을 작성하는 곳입니다.</div>
		<br>
		<div class="well" style="width: 800px; margin: auto">
			<form action="/${initParam.context_root }/com/replyContent.do" method="post"
				onsubmit="return writeFormCheck(this)" role="form">
				
				<input type="hidden" name="refamily" value="${requestScope.comBoard.refamily }"> <input
					type="hidden" name="restep" value="${requestScope.comBoard.restep }"> <input
					type="hidden" name="relevel" value="${requestScope.comBoard.relevel }"> <input
					type="hidden" name="id" value="${requestScope.comBoard.id }"> <input type="hidden"
					name="page" value="${param.page }">
					
				<div class="form-group">
					<label for="title">제목</label>
					 <input type="text" class="form-control" id="title" name="title" value="RE:${requestScope.comBoard.title }"> 
				</div>
				<div class="form-group">
					 <label for="nickname">작성자</label> : <a onclick="javascript:popUpProfileByNickname('${requestScope.comBoard.nickname }');">${requestScope.comBoard.nickname }</a>
					 <input type="hidden" id="nickname" name="nickname" class="form-control"
						value="${sessionScope.login_info.nickname }">
				</div>
				<textarea cols="75" rows="15" class="form-control" name="content">
${requestScope.comBoard.content }
<-------------------- 답변 --------------------->
</textarea>
<br><br>
				<button type="submit" class="btn btn-primary">답변</button>
				<button type="reset" class="btn btn-danger">초기화</button>
				<button type="button" class="btn btn-warning"
				onclick="location.href='/${initParam.context_root  }/com/list.do?no=${requestScope.comBoard.no}&page=${param.page}'">목록</button>
			</form>
		</div>
	</div>
</div>
